package com.ybl.store.common.convention.exception;

import com.ybl.store.common.convention.errorcode.BaseErrorCode;

/**
 * 远程服务调用异常类
 */
public class RemoteException extends AbstractException {

    public RemoteException(String message) {
        this(message, null, BaseErrorCode.REMOTE_ERROR);
    }

    public RemoteException(BaseErrorCode errorCode) {
        this(null, null, errorCode);
    }

    public RemoteException(String message, BaseErrorCode errorCode) {
        this(message, null, errorCode);
    }

    public RemoteException(String message, Throwable throwable, BaseErrorCode errorCode) {
        super(message, throwable, errorCode);
    }
}
